package cn.tedu.exercise;



public class NarcissusNumber {
    public static void main(String[] args) {

        for (int num=100;num<1000;num++){
            int a=num%10;
            //System.out.println("个位数"+a);
            int b=(num%100-a)/10;
            //System.out.println("十位数"+b);
            int c=(num-a-10*b)/100;
            //System.out.println("十位数"+c);
            if (num==a*a*a+b*b*b+c*c*c){
                System.out.println(num);
            }
        }
    }
}